projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a165bb9
)
wayland: avoid referencing unallocated memory when uninhibiting
author
Michael Terry
<mike@mterry.name>
Sun, 6 Dec 2020 23:36:58 +0000
(18:36 -0500)
committer
Michael Terry
<mike@mterry.name>
Sun, 6 Dec 2020 23:37:40 +0000
(18:37 -0500)
gtk/gtkapplication-wayland.c
patch
|
blob
|
history
diff --git
a/gtk/gtkapplication-wayland.c
b/gtk/gtkapplication-wayland.c
index 76fa144751862bf7f43a555ceb0d37c431078053..7bc311b7f1884cf20566c84102ae536dfa387cfc 100644
(file)
--- a/
gtk/gtkapplication-wayland.c
+++ b/
gtk/gtkapplication-wayland.c
@@
-122,7
+122,7
@@
gtk_application_impl_wayland_inhibit (GtkApplicationImpl *impl,
if (!flags)
return 0;
- inhibitor = g_slice_new (GtkApplicationWaylandInhibitor);
+ inhibitor = g_slice_new
0
(GtkApplicationWaylandInhibitor);
inhibitor->cookie = ++wayland->next_cookie;
inhibitor->flags = flags;
wayland->inhibitors = g_slist_prepend (wayland->inhibitors, inhibitor);